import Vue from "vue";
import VueRouter from "vue-router";
import Home from "../views/Home.vue";
import Notice from "../views/Notice.vue";
import Square from "../views/Square.vue";
import Concern from "../views/Concern.vue";
import Feedback from "../views/Feedback.vue";
import Community from "../views/Community.vue";
import Delivery from "../views/Delivery.vue";
import Store from "../views/Store.vue";
import Login from "../views/Login.vue";
import CommunityHome from "@/views/CommunityHome.vue";
import user from "@/views/User.vue";
import PostDetail from "@/views/PostDetail.vue";
import AI from "@/views/AI.vue";


Vue.use(VueRouter);

const router = new VueRouter({
  mode: "history",
  base: import.meta.env.BASE_URL || "/",
  routes: [
    {
      path: "/",
      name: "home",
      component: Home
    },
    {
      path: "/home",
      name: "home",
      component: Home
    },
    {
      path: "/login",
      name: "login",
      component: Login
    },
    {
      path: "/notice",
      name: "notice",
      component: Notice
    },
    {
      path: "/square",
      name: "square",
      component: Square
    },
    {
      path: "/concern",
      name: "concern",
      component: Concern
    },
    {
      path: "/feedback",
      name: "feedback",
      component: Feedback
    },
    {
      path: "/community",
      name: "community",
      component: Community
    },
    {
      path: "/delivery",
      name: "delivery",
      component: Delivery
    },
    {
      path: "/store",
      name: "store",
      component: Store
    },
    {
      path: "/communityHome",
      name: "communityHome",
      component: CommunityHome
    },
    {
      path: "/user",
      name: "user",
      component: user
    },
    {
      path: "/postDetail",
      name: "postDetail",
      component: PostDetail
    },
    {
      path: "/ai",
      name: "ai",
      component: AI
    }
  ]
});

export default router;
